package com.wx.sys.web;

import com.wx.sys.model.biz.SysRescView;
import com.wx.sys.service.SysRoleRescFeignApi;
import com.wx.sys.service.SysRoleRescService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * Created by king-pc on 2018/12/5.
 */
@RestController
public class SysRoleRescFeignClient implements SysRoleRescFeignApi {

    @Autowired
    private SysRoleRescService sysRoleRescService;


    @Override
    public List<SysRescView> getRoleRescList(@RequestParam("roleId") String roleId) {
        return sysRoleRescService.getRoleRescList(roleId);
    }
}
